package cn.wei.reallyenjoy.diary.mapper;

import cn.wei.reallyenjoy.common.entity.Diary;
import cn.wei.reallyenjoy.diary.pojo.vo.DiaryIndexVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 日记表 Mapper 接口
 * </p>
 *
 * @author Wei
 * @since 2021-11-28
 */
public interface DiaryMapper extends BaseMapper<Diary> {

    List<DiaryIndexVO> getDiaryList();

    List<DiaryIndexVO> getDiaryByUserId(Long userId);

    List<DiaryIndexVO> CollectionByUid(Long userId);
}
